#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace myDb;
#include "myForm.h"
namespace myui {

	/// <summary>
	/// Summary for myWindow
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
	public ref class myWindow : public System::Windows::Forms::Form
	{
	public:
		myWindow(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~myWindow()
		{
			if (components)
			{
				delete components;
			}
		}

	private: System::Windows::Forms::MenuStrip^  menuStrip;

	private: System::Windows::Forms::ToolStripMenuItem^  fileToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  aboutToolStripMenuItem;
	private: System::Windows::Forms::StatusStrip^  statusStrip;


	private: System::Windows::Forms::ToolStripMenuItem^  viewToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  companyToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  explorerToolStripMenuItem;
	private: WeifenLuo::WinFormsUI::Docking::DockPanel^  dockPanel;
	private: System::Windows::Forms::ToolStripMenuItem^  documentToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  frameListToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  frameToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  newFrameToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  propertyToolStripMenuItem;






	protected: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			WeifenLuo::WinFormsUI::Docking::DockPanelSkin^  dockPanelSkin1 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPanelSkin());
			WeifenLuo::WinFormsUI::Docking::AutoHideStripSkin^  autoHideStripSkin1 = (gcnew WeifenLuo::WinFormsUI::Docking::AutoHideStripSkin());
			WeifenLuo::WinFormsUI::Docking::DockPanelGradient^  dockPanelGradient1 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPanelGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient1 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			WeifenLuo::WinFormsUI::Docking::DockPaneStripSkin^  dockPaneStripSkin1 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPaneStripSkin());
			WeifenLuo::WinFormsUI::Docking::DockPaneStripGradient^  dockPaneStripGradient1 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPaneStripGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient2 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			WeifenLuo::WinFormsUI::Docking::DockPanelGradient^  dockPanelGradient2 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPanelGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient3 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			WeifenLuo::WinFormsUI::Docking::DockPaneStripToolWindowGradient^  dockPaneStripToolWindowGradient1 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPaneStripToolWindowGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient4 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient5 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			WeifenLuo::WinFormsUI::Docking::DockPanelGradient^  dockPanelGradient3 = (gcnew WeifenLuo::WinFormsUI::Docking::DockPanelGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient6 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			WeifenLuo::WinFormsUI::Docking::TabGradient^  tabGradient7 = (gcnew WeifenLuo::WinFormsUI::Docking::TabGradient());
			this->menuStrip = (gcnew System::Windows::Forms::MenuStrip());
			this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->viewToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->explorerToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->documentToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->frameListToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->frameToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->newFrameToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->aboutToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->companyToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->statusStrip = (gcnew System::Windows::Forms::StatusStrip());
			this->dockPanel = (gcnew WeifenLuo::WinFormsUI::Docking::DockPanel());
			this->propertyToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->menuStrip->SuspendLayout();
			this->SuspendLayout();
			// 
			// menuStrip
			// 
			this->menuStrip->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->fileToolStripMenuItem, 
				this->viewToolStripMenuItem, this->frameToolStripMenuItem, this->aboutToolStripMenuItem});
			this->menuStrip->Location = System::Drawing::Point(0, 0);
			this->menuStrip->Name = L"menuStrip";
			this->menuStrip->Size = System::Drawing::Size(781, 24);
			this->menuStrip->TabIndex = 1;
			this->menuStrip->Text = L"menuStrip1";
			// 
			// fileToolStripMenuItem
			// 
			this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->exitToolStripMenuItem});
			this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
			this->fileToolStripMenuItem->Size = System::Drawing::Size(41, 20);
			this->fileToolStripMenuItem->Text = L"File";
			// 
			// exitToolStripMenuItem
			// 
			this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
			this->exitToolStripMenuItem->Size = System::Drawing::Size(94, 22);
			this->exitToolStripMenuItem->Text = L"Exit";
			this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &myWindow::exitToolStripMenuItem_Click);
			// 
			// viewToolStripMenuItem
			// 
			this->viewToolStripMenuItem->Checked = true;
			this->viewToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
			this->viewToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(4) {this->explorerToolStripMenuItem, 
				this->documentToolStripMenuItem, this->frameListToolStripMenuItem, this->propertyToolStripMenuItem});
			this->viewToolStripMenuItem->Name = L"viewToolStripMenuItem";
			this->viewToolStripMenuItem->Size = System::Drawing::Size(41, 20);
			this->viewToolStripMenuItem->Text = L"View";
			// 
			// explorerToolStripMenuItem
			// 
			this->explorerToolStripMenuItem->Checked = true;
			this->explorerToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
			this->explorerToolStripMenuItem->Name = L"explorerToolStripMenuItem";
			this->explorerToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->explorerToolStripMenuItem->Text = L"Explorer";
			this->explorerToolStripMenuItem->Click += gcnew System::EventHandler(this, &myWindow::ToolStripMenuItem_Click);
			// 
			// documentToolStripMenuItem
			// 
			this->documentToolStripMenuItem->Checked = true;
			this->documentToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
			this->documentToolStripMenuItem->Name = L"documentToolStripMenuItem";
			this->documentToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->documentToolStripMenuItem->Text = L"Document";
			this->documentToolStripMenuItem->Click += gcnew System::EventHandler(this, &myWindow::ToolStripMenuItem_Click);
			// 
			// frameListToolStripMenuItem
			// 
			this->frameListToolStripMenuItem->Checked = true;
			this->frameListToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
			this->frameListToolStripMenuItem->Name = L"frameListToolStripMenuItem";
			this->frameListToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->frameListToolStripMenuItem->Text = L"Frame List";
			this->frameListToolStripMenuItem->Click += gcnew System::EventHandler(this, &myWindow::ToolStripMenuItem_Click);
			// 
			// frameToolStripMenuItem
			// 
			this->frameToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->newFrameToolStripMenuItem});
			this->frameToolStripMenuItem->Name = L"frameToolStripMenuItem";
			this->frameToolStripMenuItem->Size = System::Drawing::Size(47, 20);
			this->frameToolStripMenuItem->Text = L"Frame";
			// 
			// newFrameToolStripMenuItem
			// 
			this->newFrameToolStripMenuItem->Name = L"newFrameToolStripMenuItem";
			this->newFrameToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->newFrameToolStripMenuItem->Text = L"New Frame...";
			this->newFrameToolStripMenuItem->Click += gcnew System::EventHandler(this, &myWindow::newFrameToolStripMenuItem_Click);
			// 
			// aboutToolStripMenuItem
			// 
			this->aboutToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->companyToolStripMenuItem});
			this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";
			this->aboutToolStripMenuItem->Size = System::Drawing::Size(47, 20);
			this->aboutToolStripMenuItem->Text = L"About";
			// 
			// companyToolStripMenuItem
			// 
			this->companyToolStripMenuItem->Name = L"companyToolStripMenuItem";
			this->companyToolStripMenuItem->Size = System::Drawing::Size(112, 22);
			this->companyToolStripMenuItem->Text = L"Company";
			// 
			// statusStrip
			// 
			this->statusStrip->Location = System::Drawing::Point(0, 428);
			this->statusStrip->Name = L"statusStrip";
			this->statusStrip->Size = System::Drawing::Size(781, 22);
			this->statusStrip->TabIndex = 2;
			this->statusStrip->Text = L"statusStrip1";
			// 
			// dockPanel
			// 
			this->dockPanel->ActiveAutoHideContent = nullptr;
			this->dockPanel->Dock = System::Windows::Forms::DockStyle::Fill;
			this->dockPanel->DockBackColor = System::Drawing::SystemColors::Control;
			this->dockPanel->Location = System::Drawing::Point(0, 24);
			this->dockPanel->Name = L"dockPanel";
			this->dockPanel->Size = System::Drawing::Size(781, 404);
			dockPanelGradient1->EndColor = System::Drawing::SystemColors::ControlLight;
			dockPanelGradient1->StartColor = System::Drawing::SystemColors::ControlLight;
			autoHideStripSkin1->DockStripGradient = dockPanelGradient1;
			tabGradient1->EndColor = System::Drawing::SystemColors::Control;
			tabGradient1->StartColor = System::Drawing::SystemColors::Control;
			tabGradient1->TextColor = System::Drawing::SystemColors::ControlDarkDark;
			autoHideStripSkin1->TabGradient = tabGradient1;
			autoHideStripSkin1->TextFont = (gcnew System::Drawing::Font(L"SimSun", 9));
			dockPanelSkin1->AutoHideStripSkin = autoHideStripSkin1;
			tabGradient2->EndColor = System::Drawing::SystemColors::ControlLightLight;
			tabGradient2->StartColor = System::Drawing::SystemColors::ControlLightLight;
			tabGradient2->TextColor = System::Drawing::SystemColors::ControlText;
			dockPaneStripGradient1->ActiveTabGradient = tabGradient2;
			dockPanelGradient2->EndColor = System::Drawing::SystemColors::Control;
			dockPanelGradient2->StartColor = System::Drawing::SystemColors::Control;
			dockPaneStripGradient1->DockStripGradient = dockPanelGradient2;
			tabGradient3->EndColor = System::Drawing::SystemColors::ControlLight;
			tabGradient3->StartColor = System::Drawing::SystemColors::ControlLight;
			tabGradient3->TextColor = System::Drawing::SystemColors::ControlText;
			dockPaneStripGradient1->InactiveTabGradient = tabGradient3;
			dockPaneStripSkin1->DocumentGradient = dockPaneStripGradient1;
			dockPaneStripSkin1->TextFont = (gcnew System::Drawing::Font(L"SimSun", 9));
			tabGradient4->EndColor = System::Drawing::SystemColors::ActiveCaption;
			tabGradient4->LinearGradientMode = System::Drawing::Drawing2D::LinearGradientMode::Vertical;
			tabGradient4->StartColor = System::Drawing::SystemColors::GradientActiveCaption;
			tabGradient4->TextColor = System::Drawing::SystemColors::ActiveCaptionText;
			dockPaneStripToolWindowGradient1->ActiveCaptionGradient = tabGradient4;
			tabGradient5->EndColor = System::Drawing::SystemColors::Control;
			tabGradient5->StartColor = System::Drawing::SystemColors::Control;
			tabGradient5->TextColor = System::Drawing::SystemColors::ControlText;
			dockPaneStripToolWindowGradient1->ActiveTabGradient = tabGradient5;
			dockPanelGradient3->EndColor = System::Drawing::SystemColors::ControlLight;
			dockPanelGradient3->StartColor = System::Drawing::SystemColors::ControlLight;
			dockPaneStripToolWindowGradient1->DockStripGradient = dockPanelGradient3;
			tabGradient6->EndColor = System::Drawing::SystemColors::InactiveCaption;
			tabGradient6->LinearGradientMode = System::Drawing::Drawing2D::LinearGradientMode::Vertical;
			tabGradient6->StartColor = System::Drawing::SystemColors::GradientInactiveCaption;
			tabGradient6->TextColor = System::Drawing::SystemColors::InactiveCaptionText;
			dockPaneStripToolWindowGradient1->InactiveCaptionGradient = tabGradient6;
			tabGradient7->EndColor = System::Drawing::Color::Transparent;
			tabGradient7->StartColor = System::Drawing::Color::Transparent;
			tabGradient7->TextColor = System::Drawing::SystemColors::ControlDarkDark;
			dockPaneStripToolWindowGradient1->InactiveTabGradient = tabGradient7;
			dockPaneStripSkin1->ToolWindowGradient = dockPaneStripToolWindowGradient1;
			dockPanelSkin1->DockPaneStripSkin = dockPaneStripSkin1;
			this->dockPanel->Skin = dockPanelSkin1;
			this->dockPanel->TabIndex = 4;
			// 
			// propertyToolStripMenuItem
			// 
			this->propertyToolStripMenuItem->Checked = true;
			this->propertyToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
			this->propertyToolStripMenuItem->Name = L"propertyToolStripMenuItem";
			this->propertyToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->propertyToolStripMenuItem->Text = L"Property";
			this->propertyToolStripMenuItem->Click += gcnew System::EventHandler(this, &myWindow::ToolStripMenuItem_Click);
			// 
			// myWindow
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(781, 450);
			this->Controls->Add(this->dockPanel);
			this->Controls->Add(this->statusStrip);
			this->Controls->Add(this->menuStrip);
			this->IsMdiContainer = true;
			this->MainMenuStrip = this->menuStrip;
			this->Name = L"myWindow";
			this->Text = L"myWindow";
			this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &myWindow::myWindow_FormClosing);
			this->Load += gcnew System::EventHandler(this, &myWindow::myWindow_Load);
			this->menuStrip->ResumeLayout(false);
			this->menuStrip->PerformLayout();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e);
	private: System::Void myWindow_Load(System::Object^  sender, System::EventArgs^  e);
public:
	//System::Array<System::Windows::Forms::Form^>^ forms;
	System::Collections::Generic::Dictionary<System::String^, myForm^>^ viewForms;
	void ShowMyForm(String^ name,bool bShow);
	private: System::Void ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e);
	private: System::Void myWindow_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e);
	private: System::Void exitToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e);
	private: System::Void newFrameToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e);
};
}
